try:
tval1 = sprite.get_rotation()
except:
tval1 = "DNE"
try:
tval2 = sprite.get_y()
except:
tval2 = "DNE"
t1 = TestObjective()
t1.add_success(tval1 == 135, "Great Job!")
t1.add_failure(tval1 == 0, "Did you use a Rotate about Origin command?")
t1.add_failure(tval1 == 45, "Correct. Now change the number in rotate origin to reach the target.")
t1.add_failure(tval2 != 0, "Oops! Did you Rotate about a different point?")
t1.add_failure(tval1 == "DNE", "Oops! Did you delete your triangle?")
t1.add_default("Not quite, keep trying!", "failure")
tester = TestManager()
tester.display_graphics = False
tester.add_test_list([t1])
tester.run_tests()
tester.display_first_feedback()
if tval1 == 135:
text.set_text(' ')
Are you already running a Codesters project in another tab or window?
Micro:bit can only connect to one web page at a time.
Try stopping other Codesters projects or closing
other tabs or windows that may be using your Micro:bit.
If that doesn't fix the problem try disconnecting your Micro:bit,
reloading this page, and reconnecting your Micro:bit.